<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="../js/vue@2.7.16.js"></script>
    <title>模板语法</title>
  </head>

  <body>
    <div id="app">
      <h1>插值语法</h1>
      <h3>你好：{{name}}</h3>
      <br />

      <h1>指令语法</h1>
      <a :href="url" target="_blank">v2.cn.vuejs.org</a>

      <!-- v-bind 可以省略 -->
      <a v-bind:href="url" target="_blank">v2.cn.vuejs.org</a>
    </div>
  </body>
  <script>
    new Vue({
      el: "#app",
      data: {
        name: "Bunny",
        url: "https://v2.cn.vuejs.org/",
      },
    });
  </script>
</html>
